let storage = {
  get(name) {
    if (uni) {
      return uni.getStorageSync(name);
    } else {
      return localStorage.getItem(name);
    }
  },
  set(name, value) {
    if (uni) {
      uni.setStorageSync(name, value);
    } else {
      localStorage.setItem(name, value);
    }
  },
  remove(name) {
    if (uni) {
      uni.removeStorageSync(name);
    } else {
      localStorage.removeItem(name);
    }
  },
};
export default storage;
